/* 
 * File:   DocTerms.h
 * Author: eduardo
 *
 * Created on 31 de octubre de 2012, 20:31
 */

#ifndef DOCTERMS_H
#define	DOCTERMS_H

#include <map>
#include <string>
#include "Utilities.h"

using namespace std;

class DocTerms {
public:
    DocTerms();
    ~DocTerms();

    int getSize();
    void insert(string cad);
    bool belong(string cad);
    int termCount(const string& term);

    map<string, int>::iterator getBegin() {
        return _terms.begin();
    }

    map<string, int>::iterator getEnd() {
        return _terms.end();
    }

private:
    map<string, int> _terms;

};

#endif	/* DOCTERMS_H */

